package cn.tedu.charging.staff.feign;

import cn.tedu.charging.common.pojo.po.User;
import cn.tedu.charging.common.pojo.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("userService")
public interface UserClient {
    @PostMapping("/v1/user/insert")
    JsonResult insertUser(@RequestBody User user);

    @PostMapping("/v1/user/deleteByStaff/{tel}")
    JsonResult deleteUserByStaff(@PathVariable String tel);
}
